package com.gmail.bloim.serg.t1006;

/**
 * User: Администратор
 * Date: 28.04.13
 * Time: 15:17
 */
enum Direction {
    UP(-50), RIGHT(1), DOWN(50), LEFT(-1);

    static {
        UP.negative = DOWN;
        DOWN.negative = UP;
        LEFT.negative = RIGHT;
        RIGHT.negative = LEFT;
    }

    private final int step;
    private Direction negative;

    Direction(int step) {
        this.step = step;
    }

    public int getStep() {
        return step;
    }

    public Direction getNegative() {
        return negative;
    }
}
